import Vue from "vue";
import VueRouter from "vue-router"
import Home from "@/pages/user/views/Home";

Vue.use(VueRouter)

const routersConfig=[
    {
        path:"/",
        redirect:"/home/article"
    },
    {
        path:"/home/:module",
        name:"Home",
        component:Home
    },
    {
        path:"/chathome",
        name:"Chathome",
        component:()=>import("./views/Chathome")
    },
    {
        path:"/bloglist/:searchKey",
        name:"Bloglist",
        component:()=>import("./views/Bloglist")
    },
    {
        path:"/article/:id",
        name:"Articledetail",
        component:()=>import("../../components/Article-Detail")
    },
    {
        path:"/editArticle",
        name:"Articleedit",
        component:()=>import("./views/Article-edit")
    }
]



export default new VueRouter({
    routes:routersConfig
})